# (decoded with TMPL 13671) /* %filename% -- Modal dialog */ /* Created %date% %time% by AppMaker */ %If MPW% #include #include #include #include #include #include #include #include %end if% #include "ResourceDefs.h" #include "DialogAids.h" #include "%unitname%.h" #define nil 0L %ConstItems% %If MPW% #pragma segment %unitname% %end if% %ItemProcs% %MaybeFilter% /*----------*/ Boolean Get%dlogname% (%dlogname%) %dlogname%Rec% %*%dlogname%; { DialogPtr theDialog; Boolean result; Boolean done; short itemNr; register %dlogname%Ptr info; InitCursor (); theDialog = GetNewDialog (%dlogname%ID, nil, (WindowPtr) -1L); SetPort (theDialog); info = %dlogname%; %SetItems% ShowWindow (theDialog); OutlineButton (1); done = false; while (!done) { %EnableItems% ModalDialog (%Filtername%, &itemNr); switch (itemNr) { %HandleItems% } /*switch*/ } /*while*/ %FinishItems% DisposDialog (theDialog); return (result); } /*Get%dlogname%*/